import VueRouter from "vue-router"
import HomeContainer from "./component/HomeContainer.vue"
import MemberContainer from "./component/MemberContainer.vue"
import SearchContainer from "./component/RearchContainer.vue"
import ShopCarContainer from "./component/ShopCarContainer.vue"
import NewsList from "./component/NewsList.vue"

const router = new VueRouter({
  routes: [
    {path:"/", redirect:"/home"}, 
    {path:"/home",component:HomeContainer,meta:{title:"首页"}},
    {path:"/Member",component:MemberContainer,meta:{title:"会员"}},
    {path:"/Search",component:SearchContainer,meta:{title:"搜索"}},
    {path:"/ShopCar",component:ShopCarContainer,meta:{title:"购物车"}},
    {path:"/home/newslist",component:NewsList,meta:{title:"新闻资讯"}}
  ],
  linkActiveClass:"mui-active"
})

export default router